package com.zhentao.controller;

import com.zhentao.model.common.app.dto.UserLoginDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AppUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/login")
public class UserLoginController {
    @Resource
    AppUserService appUserService;

    /**
     * 用户登录
     * @param userLoginDto
     * @return
     */
    @PostMapping("/in")
    @ApiOperation("用户登录")
    public ResponseResult login(@RequestBody UserLoginDto userLoginDto){
        return appUserService.login(userLoginDto);
    }



}
